﻿<%@ Import Namespace="BLF.WWW_WWW.translate" %>
<%@ Import Namespace="Model.WWW_WWW.translate" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Web.Control.WWW.translate._default" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="title"><h1>Join the Translation Team to help italki</h1></div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="translate_area">
								<div class="translate_default">
									<span class="pink18">Become a member of the italki Translation Team and participate by:</span>
									<ul>
										<li>Translating the italki website into other foreign languages</li>
										<li>Voting for the best translation</li>
										<li>Commenting on other members' translations</li>
									</ul>
									<p align="right"><a href="/translate/help.htm">Learn more</a></p>
								</div>
								<div>
									<h3>Select a language to translate</h3>
									<p class="margin20D">The percent indicates amount completed</p>
									<div>
									<ul>
										<!--语言循环列表-->
										<% for (int i = 0; i < LangSets.Count; i++) { %>
										<li style="margin: 0px 10px 15px 0px; width: 195px; float: left"><div style="border:1px #eee solid; padding:1px; background-color:#fff"><div style=" background:url(/Images/bg_trans_precent.gif) no-repeat left top;height:20px; width:<%= GetLangPers(((string[])LangSets[i])[0]) %>"></div></div><a href="/translate/translate_list.htm?lang=<%= ((string[])LangSets[i])[0] %>"><%= ((string[])LangSets[i])[1] %></a> <span class="grey12"><%= GetLangPers(((string[])LangSets[i])[0]) %></span></li>
										<%} %>
									</ul>
									<div class="clear"></div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="center9001left">
						<%TranslateMember CurrentMember = Translate.GetTranslateMember(HttpContext.Current.User.Identity.Name); %>
						<% if ( CurrentMember == null) { %>
						<div class="right_layerA">
							<div class="layer_contentA">
							<div class="layer_contentA5">
								<p><strong>Sign in to Translation Center with your italki account</strong></p>
								<div><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/translate/join.htm" style="text-decoration:none" class="specbtn"><%}else{ %><a href="#" onclick="NotAffirm()" style="text-decoration:none" class="specbtn"><%} %><span>&nbsp;&nbsp;&nbsp;Join Now&nbsp;&nbsp;&nbsp;</span></a></div>
								<% if (HttpContext.Current.User.Identity.Name == "") { %><p>Not a member? <a href="/user/register.htm">Sign up</a></p>
								<%} %>
							</div>
							</div>
						</div>
						<%} else { %>
						<!--登录后出现框开始-->
						<div class="right_layerA">
							<div class="layer_contentA">
							<div class="layer_contentA5">
								<% if (MyTopic != null) {%>
								<h4>My Statistics</h4>
								<p>Total Score: <%= MyTopic.TotalScore %><br>Translation: <%= MyTopic.Translation %><br>Total Rank: <%= MyTopic.TotalRank %></p>
								<hr size="1" color="#cccccc" />
								<p>
								<%
								}%>
								<a href="/my/profile/personal.htm">Edit my profile</a><br>
								<a href="/translate/my_translate.htm">View my translation</a><br>
								<% if(CurrentMember.IsAdmin)
								{%>
								<a href="/translate/addtranslate.htm">Add the entry</a><br>
								<a href="/translate/import.htm">Import</a><br>
								<a href="/translate/export.htm">Export</a></p>
								<%
								}%>
							</div>
							</div>
						</div>
						<!--登录后出现框结束-->
						<%} %>
						<!--div class="right_layerA">
							<div class="layer_contentA">
								<h4>Update</h4>
								<div class="layer_contentA5">
									<ul class="right_ulblack">
									<% if (countList != null) {
									for (int i = 0; i < countList.Count; i++) {
									%>
									<li>
									<span class="grey12"><%= ((string[])countList[i])[1] %></span><br>Add <%= ((string[])countList[i])[0] %> new entries in Dutch</li>
									<%
									}
									}%>
									</ul>
									<p align="right"><a href="/translate/updatelog.htm">More</a></p>
								</div>
							</div>
						</div-->
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4>Top Translators</h4>
								<div class="layer_contentA5">
									<!--头像循环开始-->
									<% if (topicList != null) { foreach (TranslateTopic tt in topicList) {%>
									<div class="toptranslator">
										<div class="floatl pic50 wid65"><a class="photo_50" href="/<%= tt.MemberNo %>.htm"><img alt="" src='<%= string.IsNullOrEmpty(tt.Avatar) ? "/Images/no_pic.gif" : tt.Avatar %>' border="0"></a></div>
										<div class="grey12 wid100"><a href="/<%= tt.MemberNo %>.htm"><%= tt.NickName %></a><p>From: <%= GetCountryText(tt.Country) %><br />Translation: <%= tt.Translation %></p></div>
										<div class="clear"></div>
									</div>
									<%
									}
									}%>
									<!--头像循环结束-->
									<p align="right"><a href="/translate/rank.htm">More</a></p>
								</div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>